# Pipe Size Lookup Chrome Extension

This is a Manifest V3 Chrome extension for quick nominal casing and tubing size lookup.

## Load In Chrome

1. Open `chrome://extensions`.
2. Enable `Developer mode`.
3. Click `Load unpacked`.
4. Select this folder: `casing-tubing-chrome-extension`.
5. If the extension was already loaded, click the reload icon on its extension card so Chrome picks up the updated clipboard permission.

## What It Includes

- Casing/tubing product selector.
- Size and nominal weight dropdowns.
- OD, ID, nominal drift, wall thickness, and weight display.
- Result copy button using `PIPE SIZE`, `WEIGHT`, `ID`, `DRIFT`, and `WALL` lines.
- Inch/mm toggle.
- Searchable reference table.
- Custom OD/wall or OD/weight calculator.

## Data Note

The built-in table contains common nominal oilfield casing and tubing rows. Drift is calculated as an API-style nominal estimate from body ID. Exact values can vary by governing standard, pipe body, connection type, and manufacturer table. For operational, engineering, procurement, or safety-critical work, replace or validate `PIPE_DATA` in `popup.js` against the approved table used by your company.

The custom weight calculation uses the common nominal steel pipe-weight relationship:

```text
W = 10.69 * (OD - t) * t
```

Where `W` is lb/ft, `OD` is outside diameter in inches, and `t` is wall thickness in inches.
